﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Role_User_List.aspx.cs" Inherits="SysManage_Role_User_List" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>用户展示</title>
    <link rel="stylesheet" href="sysmanage.css"  type="text/css" />
     <script language="javascript" type="text/javascript"  >
function GetRowInfo(obj)
{
 form1.Hobj.value = obj;
 var ary = obj.split('|'); 
 form1.HUserCode.value = ary[0];   //角色代码
 //alert(ary[0]);
}

 var tgs; 
 var tmp_background_val; 
 function tog(n,flags)
 { 
    //傳過來本次點擊前的的背景顏色 
    if (tgs){ 
     tgs.style.background= tmp_background_val ; 
    } 
    //考慮到連續點同一個對象的情況,就不要改變保留的顏色 
    n.style.background= '#99ccff' ; 
    tmp_background_val=flags;
    tgs=n; 
 } 
         
         
  function AddRemoveValues(obj) 
    {
        var sCol = obj.value + "|";
        if(obj.checked)
        {
           form1.ChoiceInfo.value = form1.ChoiceInfo.value + sCol ;
        }
        else
        {
            form1.ChoiceInfo.value = form1.ChoiceInfo.value.replace(sCol,"");
        }
        //alert(form1.ChoiceInfo.value);
   }
</script>
</head>
<body>
<% 
  Response .ExpiresAbsolute=System.DateTime.Now. AddSeconds(-1);
  Response.Expires=0;
  Response.CacheControl = "no-cache";
%>
   <form id="form1" runat="server">
    <table style ="width:100%;">
      <tr>
         <td>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tablelsdi">
                    <tr> 
                      <td width="4%" background="../images/tablelb01.gif"><img src="../images/tablelb01-left.gif" width="21" height="22" alt="" /></td>
                      <td width="82%" background="../images/tablelb01.gif" class="font12w">
                          用户查询</td>
                      <td width="14%" background="../images/tablelb01.gif"> <div align="right"><img src="../images/tablelb01-right.gif" width="21" height="22" alt ="" /></div></td>
                    </tr>
      	           </table>
      	           <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="table">
                    <tr style ="height :26px;" bgcolor="C3DCF6"> 
                      <td width="15%"　height="25"><div align="right">用户帐户&nbsp;</div></td>
                      <td width="25%"> &nbsp;<asp:TextBox ID="LogonID" runat="server" Width="100%"></asp:TextBox></td>
                      <td width="15%" height="25"><div align="right">姓名&nbsp; </div></td>
                      <td width="25%" height="25"><div align="left"><asp:TextBox ID="PersName" runat="server" Width="100%"></asp:TextBox></div></td>
                      <td bgcolor="C3DCF6"><input id="SearchUserInfo" name="Query" type="submit" runat="server"  class="button02" value="查询" onserverclick="SearchUserInfo_ServerClick" /></td>
                    </tr>
                  </table>
                  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr> 
                      <td valign="top" background="../images/cxdimain.gif"><img src="../images/cxdileft.gif" width="20" height="15"></td>
                      <td background="../images/cxdimain.gif"><div align="right"><img src="../images/cxdiright.gif" width="20" height="15"></div></td>
                    </tr>
                  </table>
                  </td>
                 </tr>
            <tr>
              <td style="height :380;width:100%" valign ="top">
             <asp:GridView ID="GridView1" runat="server" CellPadding="0" ForeColor="#333333" DataKeyNames="ID"
            Width="100%" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False"  OnPageIndexChanging="GridView1_PageIndexChanging"  Font-Bold="False" HorizontalAlign="Center" BorderColor="White" OnRowDataBound="GridView1_RowDataBound" EmptyDataText="无数据信息" OnSorting="GridView1_Sorting" PageSize="15">
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="White" ForeColor="#333333" Height="22px" />            
            <PagerStyle BackColor="White" ForeColor="#333333" HorizontalAlign="Right" Wrap="False" />
            <HeaderStyle BackColor="#99CCFF" Font-Bold="True" ForeColor="Black" Height="23px" />
            <AlternatingRowStyle BackColor="AliceBlue" />
            <Columns>
                <asp:TemplateField HeaderText="选择">
                  <ItemTemplate>
                    <input type="checkbox" runat="server" id="OneTicketNo" onclick="AddRemoveValues(this)" value='<%#DataBinder.Eval(Container.DataItem,"ID") %>'/>
                  </ItemTemplate>
                    <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <HeaderStyle Width="5%" />
                 </asp:TemplateField>
                <asp:BoundField DataField="ID" HeaderText="ID" SortExpression ="ID">
                  <ItemStyle CssClass="hidden" />
                  <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="LogonID" HeaderText="用户帐户" SortExpression ="LogonID">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Alias" HeaderText="别名" SortExpression ="Alias">
                  <ItemStyle CssClass="hidden" />
                  <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Pers_ID" HeaderText="人员ID" SortExpression ="Pers_ID">
                  <ItemStyle CssClass="hidden" />
                  <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Name" HeaderText="真实姓名" SortExpression ="Name"/>
                <asp:BoundField DataField="CreatRole" HeaderText="创建者" SortExpression ="CreatRole">
                  <ItemStyle CssClass="hidden" />
                  <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Effective" HeaderText="是否有效" SortExpression ="Effective">
                  <ItemStyle CssClass="hidden" />
                  <HeaderStyle CssClass="hidden" />
                </asp:BoundField>          
                <asp:BoundField DataField="Groupid" HeaderText="用户组" SortExpression ="Groupid">
                  <ItemStyle CssClass="hidden" />
                  <HeaderStyle CssClass="hidden" />
                </asp:BoundField>
                <asp:BoundField DataField="Groupname" HeaderText="用户组" SortExpression ="Groupname">
                 <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
            </Columns>
           <PagerSettings FirstPageImageUrl="img/BeginPage.gif" LastPageImageUrl="img/EndPage.gif"
            NextPageImageUrl="img/NextPage.gif" PreviousPageImageUrl="img/PrePage.gif" Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="尾页" NextPageText="下一页" PreviousPageText="上一页" />
            </asp:GridView>
                </td>
            </tr>
            <tr>
              <td align ="right" >共<%=AllCount%>条记录&nbsp;<%=NowPageCount%>/<%= AllPageCount%>页&nbsp;</td>
            </tr>
     </table> 
     <input type="hidden"  id="Hobj" />
     <input type="hidden"  id="HUserCode" runat ="server"  />
     <input type="hidden"  id="HThisCode" runat ="server"  />
     <input type="hidden" id="ChoiceInfo" runat ="server"  />
     
     <asp:Button ID="BtnExport" runat="server"  Text="Button" Width="0px" Height="0px" OnClick="BtnExport_Click" />
        <asp:Button ID="BtnDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnDel_Click"  />
        <asp:Button ID="BtnDispDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnDispDel_Click"  />
        <asp:Button ID="BtnHideDel" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnHideDel_Click" />
        <asp:Button ID="BtnRefresh" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnRefresh_Click"  />
        <asp:Button ID="BtnResume" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnResume_Click" />
        <asp:Button ID="BtnOriPsd" runat="server" Text="Button" Width="0px" Height="0px" OnClick="BtnOriPsd_Click" />
    </form>
</body>
</html>
